Make pathname args wellformed in build result