make `install_script` stanza more robust

* correctly (and leniently) parse values
* add test

~~This PR has an issue with Ruby 1.8~~ Fixed