Remove silly performance optimizations in detection
Attempt to fix Rails root warnings with symlinks

Hopefully fixes #230.