Add API method to just retrieve the current local version

Signed-off-by: Simon Busch <morphis@gravedo.de>