     filePath
 
   buildRelativePath: (filePath) ->
-    @getRelativeCurrentFileRoot() + '/' + @appendJSExtension filePath
+    path.join @getRelativeCurrentFileRoot(), @appendJSExtension filePath
 
   overridePaths: (filePath) ->
     finalPath    = filePath


    _replacePath = (target) =>
      return if pathReplaced
      replaced = target.replace '$PROJECT', @currentProjectName

      if filePath.indexOf(replaced) > -1
        finalPath = filePath.replace replaced, replacements[target]

    unless @options.disablePathOverrides
      _extractTargetFrom target for target in @options.pathOverrides

TagGenerator = require 'symbols-view/lib/tag-generator'
fs           = require 'fs'
path         = require 'path'

ABSOLUTE_PATH_PATTERN = '^(\\w+(?:/\\w+)+)(?:.*?)?$'
RELATIVE_PATH_PATTERN = '^((?:..?/)+(?:\\w+/)*\\w+)(?:.*?)?$'
