Add testing program for automatic archive creation
Do not remove file extension if it is not a regular file
Prevent trailing slash in path name and fix symbolic link issues