     null
 
   defaultPath: (query, callback) ->
-    path  = "#{@loadPaths[0]}/#{query.path}"
+    path  = "#{@loadPaths[0]}#{_path.sep}#{query.path}"
     path  = path.replace(new RegExp("(\\.#{query.ext})?$"), ".#{query.ext}")
 
   create: (cursor, callback) ->

File = require('pathfinder').File
_ = Tower._

class Tower.StoreFileSystem extends Tower.Store
  # add load paths if you need to, e.g.

    prefixes      = query.prefixes || []
    loadPaths     = @loadPaths
    patterns      = []
    sep           = _path.sep

    if typeof(path) == "string"
      for loadPath in loadPaths
        for prefix in prefixes
          patterns.push new RegExp(_.regexpEscape("#{loadPath}#{sep}#{prefix}#{sep}#{path}\.#{ext}"))
        patterns.push new RegExp(_.regexpEscape("#{loadPath}#{sep}#{path}\.#{ext}"))
    else
      patterns.push path

