Fixes #50, replacing two more deprecated functions from PR #51

I've fixed the errors on the two deprecated functions reported by Travis after the PR https://github.com/larowlan/token/pull/51

This should fix the issue with the current_path() https://github.com/larowlan/token/issues/50