Control: fixed bug with $appDir parameter