attempt to fix for PATH_CHAR and PATH_SEP