Fixes incremental build when running through CLI