Fix bug when searching for jar files