basename() now removes the file extension