Refactor CI scripts so that the same scripts can be ran locally
Tweaks to the security keychain