fixed runtime error (directory => build_directory)