modified build script to work on Ubuntu