Use basedir instead of output pat