getRepoURI: fix removal of `.git` with submodules

 - switch to using `subprocess.check_output` with `cwd=filepath`

Fixes #104.