Adding BUILD_DIR environment variable

Adding **BUILD_DIR** environment variable to **tmpDir**, necessary in package generation for Slackware and others distros who need maintain an specified build directory.
There is already support for a `--build-dir` command line option, could this be used instead?