fixed issue#4

All occurences of $FILE are now replaced