fixed a bug with the path join

fixed a bug with the path join; updated some log messages