Austria were given a scare by debutants Jordan before securing a win, rounded off by a penalty in stoppage time.