Modified the running command code to allow bash