Fix generated client path in integration specs

- Was previously creating a tmp dir one level above the gem folder
- Now uses a tmp folder local to the gem
Smart setting of version, depending on whether it's present or not