Various fixes to the Travis article scripts

Found and fixed some problems in the Travis article scripts:
- Creating a keychain but not setting it as default so xctool will use it for signing
- Using sometimes $APP_NAME and sometimes $APPNAME
- Spaces in $PROFILE_NAME were causing problems