Improve remote client

- Remove query from url
- Fix/Improve permission file/folder checker.