Added setting to create missing directories when saving new file