FIX DIRECTORY_SEPARATOR support.

Signed-off-by: Richard Lea <chigix@zoho.com>