Use a different condition to check for prepended modules

This one works with 2.0 and 2.1