Need to prefix directory= setting before checking dir part of filename=