When android.permissions list is left blank, it contains a null string [""]
Filter this out when checking permission validity, and when building --permission command line args

Also fix two typos in the error message for an unknown permission