fabfile:

Fixed some user/login/env issues when running sudo commands as
postgres. These errors did not appear on OSX, but only on Linux.