Refactor upload script

* Better option handling
* Add more flags
Merge branch 'script_refactoring' of https://github.com/mrabault/paste-py into mrabault-script_refactoring
Clean paste.sh ([[ is bash-dependent, escape some potential strings)
Merge branch 'mrabault-script_refactoring'