The above is incorrect (should be ```"\\\\"``` instead of ```"\\"```), but splitting on File.separator directly is not quite right because of:

http://findbugs.sourceforge.net/bugDescriptions.html#RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION

Fixing the backslash escaping in just a second.