Added DIRECTORY_SEPARATOR available as _DS_.
Word boundary is used for the app root path replacement.
Escape literal dot in regular expression check for language code in URI.