Fixed version detection with non-admin user

This merge fixes issue #10 

The problem is that when the user is not an admin, it does not have access to https://foreman/api