Clean and update build output more intelligently

Fixes #183.
"definitionFile" would be more friendly here