proxy script: bug with path cleansing