add shorten_path and tests. we now only keep the last at most two directories of __FILE__, to make the log's data more clean.

e.g. `/home/liigo/github/uvx/test/log-client.c` will be shorten to `uvx/test/log-client.c` before sending a log.