Small fixes in SetPermissions_Impl.sh