More robust guard file