recordshell takes directory to store recorded content in as argument, util.cc checks if directory exists and if not, creates it
writes protobuf to file in specified folder, handles directory regardless of if it ends with /