Allow directories to be given as procs