Changes: - replace semanage_copy_file by copy_file_if_exists to make sure "retval" is 0 if the file does not exist - restructure if statements to be more clear ("fail" is last part of the statement) - replace read test (attempt to open the file) by stat() call