Version-Detection

I added a function (calculateVersion()) which calculates the version if
no one is provided to the fetch()-Method.