install: autodetect install paths

Signed-off-by: Rohit Yadav <bhaisaab@baagi.org>