Made the path input a little more foolproof