fix check_path not using path variable
Merge pull request #18 from Ceropean/master

fix check_path not using path variable