use const char pointers

and no longer modify the given `path` (`strtok` modifies stuff)
Merge pull request #2 from clibs/refactor/const-char-pointers

use const char pointers