Fix version/release detection