Revert "Use global bin_dir"

This reverts commit 747e8ef80b22b06912828cf3eb91c8b103456274.