Minor changes to server.py

- Log original path name rather than last path name
- Use for-else construct to avoid use of flag variable
- Make log messages consistent