[devperm.sh] Fixes permissions when changing file mode