catalyst_api: handle the last path entry in the envvar
The last path entry is terminated by `pathsep` getting to the end of the string which leaves the loop without checking if `curpath` has been handled. Fixes: #10
The last path entry is terminated by `pathsep` getting to the end of the string which leaves the loop without checking if `curpath` has been handled. Fixes: #10