modified build script to build to root dir