mwscript.py: Set defaults for directory and user
Set reasonable defaults for --directory and --user in scap php
and scap mwscript. This is followup to !859 (merged).
Factor out some common code between PHPApp and Mwscript classes.
Related MRs:
- !871 (merged) (This MR)
- !870 (merged)
- master