fixed implementation in #30

Absolutize path before using it as relative base