This should fix prepareSharedSymlinks()