Expand parameters in --reference configuration

This change causes the value of "Path of the reference repo to use during clone" to be expanded, similar to how the repository path is expanded.

In my use case, different slaves can have different reference paths for the same job.  I use slave-specified environmental variables to configure the reference path.