fix pstoeps function in backend_ps.py

This is a possible fix for  #1997. It works for ubuntu 13.04 and 12.10.
I am no way an expert of postscript, so I am not sure if this is a correct fix though.

If this turned out to be a good fix, maybe this need to be picked up by the v1.2.x branch also?