Revert "Changed local situation detection to not use GetObjectByLocalPath()"

This reverts commit dfa4700ecdc7cc21c45b114c78ce7e38cd74900b.