Fixed problem where parent directory to save file would not be created causing an exception to be thrown and the program to not save.