added alternative cmd line parsing to avoid using directories as inputs to the script. Should be more galaxy friendly