realpath is not easily available in windows