Be sure the generated build directory is cleaned when required
Merge pull request #39 from dizzzz/develop

Be sure the generated build directory is cleaned when required