fix findbugs error

- remove use of guava Files
- some other findbugs errors
Unbelievable isn't it. Its complaint is also very obfuscated. Something along the line "unnecessary null check where the variable is known to be null" I can't figure out why but I managed to pinpoint the offending line. This change makes it happy.