updated for the new version of module tools - uses 2 separate workdirs for 4.3 and 5.0