This uses the /tmp directory to store downloads, so we can get rid of the part about localizing the Download folder.
Fix regex expression to determine screen resolution