Fixed a critical bug in moving a file with no dot in the name.