extract let
align definitions of regexps and use File::SEPARATOR

NOTE: I didn't run this on Windows so I don't know if it actually
passes on Windows yet.