fixed creation and deletion of the provisioning profile if the proper directory does not exist