It should works fine with relative paths but I added a path.resolve just to be sure :)