Fix bug related to dot files as well as extensionless files not being renamed