You can just use ".*" as the second argument to strip the first extension from
the a file's basename.

Thank you @nobu for this lesson: https://twitter.com/n0kada/status/545387878382333952