Update checkduplicate command for MC
Fix bug in cycle dir path