add /bin/* into namelist
change sprintf into snprintf
change LINE_MAX to PATH_MAX
cancel the copy behavior of /bin directory