libload: use strtok correctly when parsing $PATH