bug for relative paths with "." and ".."