Handle reused commands in path parser for last command