pkgconfig was being written to the wrong directory if build/lib/pkgconfig didn't already exist