Wow I suck at testing my code. is_dir -> isdir