use single square brackets for testing public directory existence

Double square brackets "[[" is a shell keyword but it's not always available in cron jobs.
Single square brackets "[" is a shell builtin and portable across posix compliant shells.