Improved startup script to wait for fabric8 to be ready