Your backup chain goes by information (the LSNs) that is within each header of the physical backup file (full, differential, or log).
The information on the database/log backups written to the msdb backup tables have nothing to do with your backup chain. You can simply move the backup file to the correct folder you wish.