Fix bug with require by explicily using $dir

Under some more unconventional setups, I have found that this require_once
line can break. Explicitly adding the directory (with $dir) to the path
solves the problem.

Change-Id: Iff7a061be4c22d705d03d67cf8af9cc7805928ea