use `git status` to check if it's a repo

not just checking if `.git` exists.

`.git` may be broken, or git may be unavailable.
use file://$PWD#egg=ipython[all] in Dockerfile

so we can install ipython[all] with pip.
Because .[all] doesn't work for whatever reason.
Removes need to install other dependencies with pip beforehand.