Added option for directory of pipeline scripts + minor changes