I think that the easiest method is to change gswin32, gswin64, gswin32c or gswin64c.exe to gs.exe and your problem is resolved but first you have to set environment variables