extracting version from executable

Signed-off-by: Gabriel Andrade <gabriel@b-datum.com>