Handle .stignore correctly on Windows (fixes #369)