Fixed regex matching package name.
Added prefs and .project.