fix realpath issue with modx 2.2.6 in the manager