Construct joystick pathnames correctly

Fixes #742