[DROOLS-361] make incremental compilation to automatically calculate the list of modified files
(cherry picked from commit a6983db234ef1aa4b1a278572e745446675e82e9)