fixes #1157
force empty tmp dir before building
Merge pull request #1158 from ractivejs/gh-1157

fixes #1157