fixing action to retain building dependencies and dirs