fix output dir relative