[utils] Add posix expanduser implementation and clarify the original source