compiler: remove the compilation directory unless explicitely set