Bugfix: treat last word correctly.
move string utils to lib
use library versions of readdir and split.
Merge branch 'devel_string_util'