Fixed path issues

When requiring a module on a windows system, ci.js could not load a
module specified by a relative path. Now always the absolute path with
file extension is passed to require().