made test build directory agnostic