allow overwriting of YML location using gem's default ENV variable

Also ensured output directory is always valid by mkdir_p'ing it