added windows unlink support

Windows is picky aboit using is_file before unlink. There you go.