Making it work on Solaris, AIX & Linux

Some tweaks to pattern matching and to what commands to run for each OS
Accidental file placement