Get version from config if necessary

Hi Dan

Here's a patch for issue 32 that I reported a short time ago. Hope it's useful!

Cheers

Michael