fix update & stop script for synology