fixed up build for common tmp dir