Fixed issue where version parameter was not evaluated correctly

Signed-off-by: Patrick Van Brussel <patrick@inuits.eu>