removing linked dir before symlinking