Implement module mapping to directory