Sundry code smell and other small fixes

* Should resolve most landscape.io-reported code smells and errors
  within the util module
* Neuter executability of vbox-devstack.py