Add basename, extension, filename, parent
Created by: pithonsmear
Problem: Missing string methods
Solution: Add some of them
Changes introduced by this pull request:
- $basename: Print NAME without leading directories
- $extension: Print extension of NAME
- $filename: Print NAME without extension (if there is one)
- $parent: Print parent of NAME (if there is one)