pkg_install_script: read commands from stdin (API BREAK)

Read commands from stdin instead of using comments inside the build
script.