Fix version_string.sh: check for .git directory was too early
Fix Android compiler warnings ("%zd" and ssize_t)

Also squash some unconditional DEBUG statements