updated build script for linux systems