Fix for https://github.com/progrium/dokku/issues/533

https://github.com/progrium/dokku/issues/533