Changed installapp and avd from sh to perl