Fix command line parsing of puppetresource (WIP)