I would replace this state with just checking for the .release file.