fix plot save and save error

save errors were not being shown

saving a plot didn't expand env vars