The idea of a membrane is to carry water to the guttering in the event that a tile or tiles which become damaged or missing, what you are planning to do is a waste of time it should be on top of the rafters and dressed in to the guttering using felt support trays to stop rot and flapping felt