Fixed the issue with local and remote files not being properly distinguished on Windows (closes #328).