Add CURDIR and FILENAME variables if possible.
Fix test.