Fix wrong directory resolution in install script
Fix fig install