unocupied file name helper fix to deal with files without extension