Creates an script to call in the chrooted env