Removed unnecessary trailing slash.
Created a tmp folder for the chrooted environment.