Fix path and symlink functions.