Amended input checks and added correction for removing old tile directory.