Finalized JoinFile.sh