Fix for shared profiles on D7 platforms.