MOBSDK-597: Fix path building code to use iOS SDK methods. Minor code cleanup.