Added missing thisdir assignment