added a commonDir function
allowing commondir to handle an array argument
update builder
Merge branch 'feature/commondir'

* feature/commondir:
  update builder
  allowing commondir to handle an array argument
  added a commonDir function