This was broken by b0bedb5a, in the else for dep_bash.found(), it references datadir which is an undefined variable. Probably meant to use get_option('datadir').
dep_bash.found()
datadir
get_option('datadir')
/cc @evelikov