(CFACT-91) Fix external dir relative path

Test for and filter trailing separators in PATH.
Fix external-dir with a relative path.