Fix invocation to PRE_BUILD_HOOK to accept absolute, relative and expanded paths