Fixed build_directory script for non-bash users.
Merge pull request #211 from AdrianGaudebert/build_directory-script-bash

Fixed build_directory script for non-bash users.