Improve linux build script usability

 * make script executable & add shebang
 * use dirname to detect path to the script, hence it can be run from
   any other dir