fully fix build_dir copying
add fix for in-tree symlinks, with updated test
Merge pull request #226 from ohanar/build_dir

fix build_dir copying