Fixes for Docker 0.6.5 and latest Dokku. Use $DOKKU_ROOT instead of path in /home. Also change how port detection is handeled