Changed file.Chmod with os.Chmod because file.Chmod fails horribly on wi...

What the title says :)

(Review request: http://reviews.vapour.ws/r/530/)