add method to parse the pkg_scripts line and return an array