Minor fixes on argument handling in php scripts