Add script-update-self macro

Signed-off-by: nixnodes <code@nixnodes.net>