Use bash to find dir rather than subshell