Fix an error when saving an example file
Fixes an error that occurs when saving a file to a directory in which the user doesn't have write permissions. When attempting to save a file to a similar directory, the user will be prompted to save the file to a directory located in the home directory.