fetching the version using buildInfo command