Basically a complete rewrite. This now is able to parse git installed imag version strings and behave accordingly. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>