Changing filename to basename