Split app and download directories. Added download dir argument