fix for malformed urls via crons. Use civi way of forming the url.