Push and pop the temporary build directory rather than hardcoding absolute path