Fixed an issue in the postflight script where it would fail if a cacert was being used