Add set_file_rights.sh for osx and linux