gh-172 Fix module location for compilation on Windows

* Using toExternalForm on URL produces a UNIX-style path which does
not work fine on Windows machines. Instead, create a File with the
URL's URI and get absolute path for it, which produces a plattform
dependant path.