Fixed file paths to include.
Merge pull request #9 from KoichiWada/39b0e9df41b891e1f75f89ce2d5518e00736de42

Replaced basename() by dirname() to build file paths.