example.sh: Fixing if -f syntax

With bash 4.2.37, 'if -f "file"; then' is incorrect
Switching to something that shall works everywhere like if [ -f "file" ]; then