mescc: getcwd: Support getcwd (0, 0) GNU extension.