Shortest-Path Constrained Reinforcement Learning for Sparse Reward Tasks