Added code to make experiment directory self-contained