make `install_script` stanza more robust

* correctly (and leniently) parse values
* add test
Merge pull request #6306 from rolandwalker/install_script_improvements

make `install_script` stanza more robust