Allow paths separated with PATH_SEPARATOR for include, lib and opt dir

Fixes #2264