Fixed bug in getLineCountForFile (isFile check)