Correctly handle repos without checked-out branches in source/refresh

Have to make sure repo/checked-out-branch returns non-null before attempting to
parse the branch name.
Set version number for release: 1.1.2