added check for a.java in package named directory