Well it's bin like this for a long long time ... entity id's can change every update. Not always, but it can occur..
That's why you should use names, models =)
It's not fun to update your script every thursday after the update ... also your users will have to wait until the script is pushed to the SDN , but hey.. it's your choice
Khaleesi