extract function to find files under a named directory
rename variable $dir => $base_dir
extract function to convert a canonical path to one relative to another
extract method to compare the output files of two builds
use the string-centric functions for dealing with these directory names
these can be called as class methods
extract method to compare build output directories by pathname