fn check_filename(file: &Path, shell: &mut Shell) -> CargoResult<()>