Added ability to specify a shell used to run script