Added custom module directory support (useful for Component.js).