cd to repository dir before setting config