automatically add file extension to new files when it has no extension