search config in etc and current path