Fix parsing of periods from config file in selfstats.

Period can be given without space between value and unit now.
Fix parsing of dates from config file in selfstats.