pass currentPath to persist through hot code reload
currentPath adjustments

fix implementation with ‘string’ type check.
Merge pull request #15 from cdoe/current-path

pass currentPath to persist through hot code reload