Fixes + test for the new unloader directory_prefix