Fix warning and generated path when file above basedir
really fix the double /
cleanup debug line
Merge pull request #55 from remicollet/issue-dirup

Fix warning and generated path when file above basedir