Modified path handling so that basedir is converted to an absolute path
before being passed in to subsequent functions