Added directory saving to dot scripts