fix bug in select_first_file of wp-java.sh, break after finding first file