Fix a path resolve bug for multiple double dot