moved check_perms to a function
added logic to allow "once" or "every" login scripts
edited Makefile
updated README