Use Arr::get().

Signed-off-by: crynobone <crynobone@gmail.com>
always remove / from path.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.2'