Some minor tidying up.

This changes the behaviour for when there's no extension (no `'.'` found). It now looks equivalent to just `file.splitAt(exti)`, while before it returned `(file, "")` in the extension-less case, so that it becomes `file.min`.