Fix bug in register for filenames w/no extension