Fix 'reference is not a tree error' when installing.
Merge pull request #15 from person808/master