Check to see if 'ghostscript' in /usr/bin/ isn't really a symlink to the 'real name/app' ... gs.
Use path to the 'real' gs ... where ever that is on your system.
[root@server ~]# cd /usr/bin/
[root@server bin]# ls -l ghostscript
lrwxrwxrwx. 1 root root 2 May 10 06:45 ghostscript -> gs
Above shows symlink.
'SoS', Ken