Add basename() function - related to pull request #274 (Implement the basename() function to stdlib.): now admits removing file extension, the ruby File.basename() way