Two fixes - for the sh script it should work if the current directory isn't ide/flashbuilder and for the bat script prepend "call" to ant command.