Fixed userAgent string, by moving version out of constructor