resolve in multiple module directories

fixes webpack/webpack#127