fix detect path to binary