fix with / and \ in realpath