Scripts are now executed in sub processes to preserve pwd