What happens when the need is to determine programmatically that a given page has been customized/ghosted or not?
SPFile file = SPContext.Current.Web.RootFolder.Files["default.aspx"];
bool IsCustomized = (bool)file.Properties["vti_hasdefaultcontent"];