Fix error saving a file in a non existing folder