Improved deploy script.
Check that SUB_HOME is set before deploying.
Correct redirect.