Improved rm symlink if specified path is different from the previous one