Resolves issue #2

The assignment of the PROVISION variable needs to happen earlier, before cd'ing into the temp folder. It also needs to be in quotes in the security command, otherwise a space in the path will cause problems. I imagine this is a common problem as XCode's provisioning profiles reside in such a path by default (~/Library/MobileDevices/Provisioning Profiles/...).

This resolves issue #2, or at least it did for me.