= fixed SBT module prefs in case of huge amount of imports

(cherry picked from commit a6020bfbec87d2f60254078d985aea70e70bb4b9)