Use <?> when getcwd fails