Update decrypt.sh

Add fix_permission function