introduced checking for use_sudo in supervisor command