fix which dir we cd into to cp settings file