Ambiguous filenames and correct exit