fix #19 under Windows, not tested under Nux.