Fix PAKFILE2.BIN and eboot logic

Fix #5474
Merge pull request #5476 from sum2012/patch-4

Fix PAKFILE2.BIN and eboot logic