support ./ require paths from root when pruning.