Modified regexp to detect versions extensions (Ruby issue #7)