fixed directory issue in combining scripts for external data