Clean and update build output more intelligently

Fixes #183.
See [this comment](https://github.com/palantir/eclipse-typescript/pull/184/files#diff-f9d67db69e01e08c8ab96df7a99cbf5eR371)