Use File.base instead of '.'