make language detection working directory independent