Fixed functions to comply with POSIX
Updated indents
Removed redundant check for number of archives passed
Fixed signal trap setting
Fixed quoting parameters
Further POSIX-ification
Corrected calculations format
Prevent globbing
Removed redundand variable ARCHIVE_DIR
Revert "Removed redundant check for number of archives passed"

This reverts commit 85f2a3dbbf61f619e3054bcaecca635651250887.
Removed redundand (and wrong) check for number of parameters >2
Merge pull request #2 from gitlava/master

Code review: POSIX-compliancy