[upgrade] fix pre script for Debian with right UID/GID