fix resolvePath() to remove prefix "./" in the path