Remove unnecessary #basename.
Remove early File#basename so relative paths actually work.