Autodetect version

This has been checked by Steven on the staging site and he wants it to go live