Get local command as c-string