scripts: Take LOCALVERSION into account when emitting versions

extract-bitbake-metadata.py now takes LOCALVERSION into account when
emitting package versions.  Versions for packages of recipes that
don't set LOCALVERSION are emitted based on PV only, as before.

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>