Run preview from the cli instead of from the preview module. Remove explicit paths from my dev env from preview and console commands.
It is enough to setup the ruby object for the help command, The programs have built in setup.