oops, was adding base name twice to path options if there was an extension