Fix Gradle crash when DEPLOY_DIR is undefined.