Fix cache urls when MODX is running from a subdirectory

https://github.com/oo12/phpThumbOf/issues/16