expand ^/ in target paths to be relative to the build root