A trio of quick-thinking cleaners returning from work in St Andrews raised the alarm after coming across a fire in a derelict house.