Respect basedir when resolving absolute path