Resolve the upstream name rather than hardcoding "origin"

Fixes #82
Don't fail if local dotfiles does not have a git remote

Fixes #86
Replace __FRESH_TEST_MODE__ with BASH_SOURCE