Automatically create log and screenshot dirs if necessary