Seperated build, distribute and source directories

issue: #1