Separate repository path acquisition into a distinct function.

Authored by intelfx on Nov 29 2012, 2:38 PM.