Change way we get buildversion

Due to some strange bug when using getprop from a user called script, we
need to use grep to pull the version. getprop will just return null.