Create parent directories when linking

Fixes #52