get-daytime-period: fix for OpenVZ containers to skip redshift