Updated gritter script template to use fd as id