Changed the order of the (valid?) and (acceptable-output-folder?)
function calls.