Merge pull request #2 from salsifis/master

Win32: only print backslashes in filenames
fix opendir() emulation to return ENOTDIR if the path is a file, so that 'ag foo file.txt' works
add a test for bug fixed in previous checkin
make color_normal() on windows use current console color attributes
fix compile error on Cygwin

Related: #255
Merge pull request #316 from k-takata/topic/cygwin-compile-error

fix compile error on Cygwin
Merge remote-tracking branch 'ggreer/master'

Conflicts:
	src/scandir.c