Revert "fix failed to load dynamic modules."

This reverts commit 1e2310d161619d0125fb20fa2b499b8b65494d96.
Strip file extension when setting module names.
Merge remote-tracking branch 'vicamo/froyo' into gingerbread
Merge remote-tracking branch 'vicamo/jellybean' into gingerbread

Reconsile from jellybean and kitkat.