In a food processor, pulse the flour, sugar and salt to combine. Add the butter and pulse briefly until the butter pieces are the size of peas. Add the egg and water. Pulse again until the dough just begins to hold together, adding more water if necessary. Remove the dough and shape into a disc.