Absolute paths now work correctly with hapi command

Closes #861