for backward compatibility, write a list of loaded modules to /tmp