Updated registerInFilesystem()

updated GcHelpers::registerInFilesystem() for use in contao >= 3.1