Ported the file search with pre-Java 7 API.