LPS-43890: Under certain server settings, Liferay may not clean up temp files when deploying portlets

tested and verified that this fixes the delete issue.