try to create directory if it does not exist