Prevent multiple runs/target from impacting each others

Running multiple times the same target can mess up the build if config
changes in between (by listening to the watch event for example).
This should fix those use cases.