Better use of grep (+ other changes)

-grep can handle multiple syntaxes at once. Derp.
-Moved directory creation into check_stuff function (now only creates
if the script’s sure it’s running on a Pi)
-Slightly reorganized code