added alternative cmd line parsing to avoid using directories as inputs to the script. Should be more galaxy friendly
moved $FinBin and looking for modules higher up in the script