Add basename() function - related to pull request #274

Hi, this pull request is related to pull request #274 (Implement the basename() function to stdlib.)

basename() now admits removing file extension, the way ruby's File.basename() does.