ignore if catalogfile_path is a directory, not a file
refactoring: Extract Method Builder#target_name