Include -devel-HASH(-dirty) in the version string

When not compiled with `make release=1`, the version string will include
a suffix with the exact version information based on the git hash. Also,
if the current working tree is dirty (it have uncommitted changed) an
extra suffix will be added (-dirty).

When using `make release=1` only the version information present in the
VERSION file will be used.