another attempt at a bug fix
lets try use bash -c foo.sh from now on - thanks @gashcrumb for the idea!