Correct logic for table prefix check in advanced install