Works recursively with a lib dir now