push and pop build directory