bug fix for command_path