Fixed issue where I tried to redeclare cmdpath