Fix 'reference is not a tree error' when installing.

Fixes #14