Fix for creation of media source when MODX is installed in nested directory.