refactor of pathsToGlob to handle comments, \r\n line endings and inclus...

Rewrote pathsToGlob to handle comments, new lines using \r\n and inclusions.
Also added path.resolve when creating paths.