Fix external command path handling