Merge pull request #4339 from AndresTanasijczuk/fix_dir_opt

Fix -d option problem in getcommand.
Better printout layout in getcommand.
Add username to uploaded log file url. Convert retrieved username from SiteDB = 'null' to None (and give appropriate error msg in checkusername).
Merge pull request #4345 from AndresTanasijczuk/log

Add username to uploaded log file url.
Merge pull request #4343 from AndresTanasijczuk/getcmd

Better printout layout in getcommand.
Change --cmptask option name in remake command. Fixes #4346