Use remote gerrit if present

Signed-off-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Cleanup magit definitions