FIxed wrong statement

[ -f #{f} ] returns true when file exists