Expand repository source and checkout subdirectory to allow environment/build parameters to work (required for inheritance plug-in).