Fixed checking paths... Thanks to Hellzed for finding this!