Better handling of DIRECTORY_SEPARATOR for maximum IIS compatibility. Fixes #4433