use options when downloading commits
read current URL more robustly