Fixed output path creation so it uses the prefix and handles long input paths correctly.
Fixed output path creation so it uses the prefix and handles long input paths correctly.

spinicist/old_QUIT,spinicist/old_QUIT,spinicist/old_QUIT,spinicist/old_QUIT