Bugfix: update module section position

Moving the module to another section does not update the timemodify
field. This commit checks the section position and updates the local
entry when the section changes.