Fixed a bug which caused build to fail on systems with DATE installed