Fix for custom directory
If external module, use it in path