Fixes directory for discovery