Fix permissions on shutdown-hook. Fixes #5.