common subroutines to create / remove lock file moved to a single file
better comment of what the subroutine does
Amazon S3 unit tests