Add get_running_cmd for issue #15