Fixed according to review comments.

Replaced multiple malloc-strcpy-strcat calls with
single function bt_path_join().
Corrected /etc/os-release handling.