fix git ignore files and keep cache and log dir