buildrom.sh: Fix dev build number detection

Signed-off-by: Andreas Pohl <apohl79@gmail.com>