Applied changes from Tim O'Callaghan (timoc) 76ca0ebed762dc58dd04c556a49d2cf3df1e838d
Fixes errors where an alternative bin directory is used.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Merge pull request #30 from d7415/path_fix

Applied changes from Tim O'Callaghan (timoc) 76ca0ebed762dc58dd04c556a49...