Fix paths by requiring them with __dirname instead of cwd

Signed-off-by: Henrique Vicente <henriquevicente@gmail.com>