Fix dependency bug

Previously the war file in /tmp would be deleted before it was copied
over to the catalina base directory. This commit reverses that order, so
that the tmp file is not deleted until it has been successfully copied
and deployed.