Always specify output dir and make directories related to basedir