updating build script to work without sed -r