Fixes ignoring of custom modules_dir path