Fix a directory name to build head.