proxy script: bug in path cleansing