Substitute command "foreach" with "for"

foreach is available from Java 8, but Perun currently using only Java 7