handling of optional media and languages directories and files if they exist for all extensions