On Ubuntu /bin/sh does not support [[, which is used in the shell scripts (which have a shebang pointing to /bin/sh, and are I believe also called explicitly by sh in some paces). This is similar the the old issue #261 (pushd). Possible fixes are changing the scripts, or perhaps just explicitly demanding /bin/sh points to bash.