Use $BIN_DIR in hooks.

Due to where the compile script is run from `bin/pre_compile` doesn't exist. (Unless I've totally misunderstood where I should put things...)