changed perms to +x on check_mem.sh