Improve linux build script usability

Just added some stanard bashisms :)