Fix for #43 Hook breaks when project root is moved

First attempt at a fix for #43