Check for requirements before installing magit

Trying to pull your changes into my fork