Adds options to create the directory if it doesn't exist