Fix error scriptencoding and snippet dir