Move path check to after webcam init