MULE-7629: Fix test by resolving symbolic links when checking the original directory property.

(cherry picked from commit ee85a8d3c184076381d10a70cfa396f4c8997106)