bugfix: extract version information into a separate independent file

fixes the bug where you can't build from gemspec without having all dependencies installed

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>