change read file dir to abosute value