fixed makefile target push_file
replace array functions by loops