_make_stat expects int, head_container return str

This affects specially sftp-cloudfs as some sftp clients
will try to stat a directory before performing the cd.
ready for 0.24.1