Correct default path generation for generated commands