Cleaning up tempdb handler

* Whitespace
* Rubocop fixes
* Validating metrics format
* Splitting on whitespace instead of tabs