Simplify code by leveraging lib folder under versioning
Test against a temporary file