Removing static from member function getWriteablePath and making buildResolutionOrder self contained