Fix installer and make it pip-friendly.

Previously the install command was replaced by the distutils version
that is not pip-compatible.