Fix for profile path comparison