add resources dir to default new template, close #1016