Using DIRECTORY_SEPARATOR to fix windows specific path definition in api...

Fixes issue #682