fix directory issue when compiling on linux