strip trailing slash from BUILD_ROOT

Fixes issue #146.