Change the directory which depends on each versions

Changing directory depending on the version