fix: more thorough handling of bash