I think this may be in the wrong place, it would run when the software definition is loaded, so on the first run it would happen before the code is checked out.