$LOGDIR might not be initialized

Following http://devstack.org/guides/single-vm.html, where `LOGFILE` is not set, a Git timeout led to a secondary error when `worddump` was invoked with an empty argument for `-d`.