add woff2 format. close #1. fix dir check