Fix directory path problems.