Added IOS-specific path handling.