MULE-7629: added originalDirectory property. Cherry picked from a5f4b03008f32188f5f6e6bf6ed6fb31ec0e7e3d