Fix for purging cache with ez5.1

Maybe some enhancement should be added because if you use ez5.0 this modification will not work.
It's recommended for >= eZ 5.1 because command line could send purge method to reverse proxy too.