Remove path property in CommandAutoloader, and fix extension removal