a bit smarter logic for determining location of .skystate file