fix definition of THISDIR