Using pkg-config to find the script installation path.

Corrected a bash typo with client_final variable in gazebo script.