Modified external partition insertion script to use temp directory as a convention