Prevented infinite loop of files importing themselves. Resolves issue 235.