Added additional dir-checking logic
Added sudo perms for mkdirs
stupid crontab