Changed auto-refresh of permissions

Shell script is not needed anymore - calling php script directly from
crontab
Changed cronjob to call php script directly

Also added comment to php script