Fix: torsocks.in libdir path with lib prefix

Fixes #8

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Fix: check fileno returned value

Signed-off-by: David Goulet <dgoulet@ev0ke.net>