Sub Ryan Williams scored the winning goal moments after Jack Redshaw had set up Stewart Drummond to bag the first to bring the visitors back into the game.
Bentley said: "I always tell the substitutes to keep themselves warm and make sure they are in a position to turn the game if they come on.
"The lads all did that and I thought they were superb and changed the game in our favour. They were really sharp and got straight into the game and did exactly what I wanted and inspired us to a superb win.
"We haven't had the best of records away from home recently so it was an important win as well. Every point is vital at the minute and the lads showed great courage and determination to come back into the game after going a goal behind.
"I didn't think it was going to be our day after that but we battled all the way to the end for the win."