Fix Gradle crash when no DEPLOY_DIR defined.