Fix recursive compilation of pages files. Tested.