Change sample directory