[filebrowser] fix mkpath behavior