Add $basedir to $moduledir if not absolute path