improved linux build script