Saving last directory in properties file to use in next execution and
fix toString of myfile when there isn't extension