Just a small glitch in one of the examples... The path separator is hard-coded here as a semi-colon; using File.pathSeparator makes this work for non-Windows folks.
Using File.pathSeparator instead of semi-colon
Using File.pathSeparator instead of semi-colon