If the package system thinks it knows what package a file is in then that overrides what the file itself says. It should work the opposite way, and the info from the file should update the memory. Also, there should be a way for the user to set the package associated with the file manually.