Replicates lib directory structure in spec.