platform independent path fixies
diff --git a/lib/mako/template.py b/lib/mako/template.py
index ebdf965..94b3fcf 100644
--- a/lib/mako/template.py
+++ b/lib/mako/template.py
@@ -10,7 +10,7 @@
 from mako.lexer import Lexer
 from mako import codegen
 from mako import runtime, util, exceptions
-import imp, time, weakref, tempfile, shutil,  os, stat, posixpath, sys, re
+import imp, time, weakref, tempfile, shutil,  os, stat, sys, re
 
 
     
@@ -57,7 +57,7 @@
             else:
                 path = None    
             if path is not None:
-                util.verify_directory(posixpath.dirname(path))
+                util.verify_directory(os.path.dirname(path))
                 filemtime = os.stat(filename)[stat.ST_MTIME]
                 if not os.access(path, os.F_OK) or os.stat(path)[stat.ST_MTIME] < filemtime:
                     _compile_module_file(file(filename).read(), self.module_id, filename, path, self.uri)