in reply to Backticks within child process

What do you mean by "jumbled"? What does it look like?

Out of curiosity, does your problem go away if you put sleep 1; before your if statement?