lots of cleanup and guaranteed fallback for finding the jade runtime