function all( paths, dir ) {
	var child;
	var spath;
	var out;
	var i;

	// Start at a base directory and continue moving up through each parent directory...
	out = [];
	while ( child !== dir ) {
		for ( i = 0; i < paths.length; i++ ) {
			spath = resolve( dir, paths[ i ] );
			if ( exists( spath ) ) {
				out.push( spath );
			}
		}
		if ( out.length === paths.length ) {
			return out;
		}
		out = [];
		child = dir;
		dir = resolve( dir, '..' );
	}
	return out;
}
Synchronously resolves all paths from a set of paths at a directory level by walking parent directories.

@private
@param {Array<string>} paths - paths to resolve
@param {string} dir - base directory
@returns {Array<string>} resolved paths