Rename tool now does a dependency check

Rename tool now does a dependency check