Added functionallity to force delete files/dir and to return basename