Quickfix: ensure that dir? returns falsey when not passed a directory