Fixed searching for package.js

The fix done in #185 for package search was insufficient. modified package.js to search for the file first (breadth first) before searching subdirectories.