Fixing the way that RA gets the home directory due to iOS8 change

Annoyingly it still works in the iOS8 simulator without this change.