Bugfix: --set-permission works on local paths anly