Fix potential bug in index building: ignore lines in comments & strings
Be careful with umask when creating hidden directory