Add lib directory, fix require chain