Remove duplicate code, clarify logic around extracting the install directory from the relative path
Remove duplicate code, clarify logic around extracting the install directory from the relative path

leapmotion/autowiring,leapmotion/leapserial,leapmotion/autowiring,leapmotion/autowiring,leapmotion/LeapIPC,leapmotion/leapserial,leapmotion/autowiring,leapmotion/autowiring,leapmotion/LeapIPC,leapmotion/autowiring,leapmotion/leapserial