Added make folder if not present functionality