Added KeyFile path validator and tests.