Create library directories if not present

Fixes #56