reuse os.stat() result when checking for non-APK files

This should make things a bit more efficient when running on lots of files,
unless python was already caching the result...
Status Job ID Name Coverage
  Test
passed #5797686
test

00:22:41