Update UpgradeTask.java

Return cwd correctly