It's the same CdS photocell as used in household nite-lites. It has a trimmer adjustment for stray/ambient rejection. There are versions on eBay that have the photocell soldered to the board and save you a few cents but I believe the cabled-photocell version gives more flexibility in placement.
For the serious (i.e., "have soldering iron, will travel") DIY'er you can inspect the circuit and realize you can replace the photocell with an infrared (IR) sensor. To the OP's idea about occupancy sensing, you could simply flood the area in question with IR energy with cheap IR LEDs and mess with home-brew ITAD functionality. That is, this would allow running the layout in the dark using the same train-shadows-the-detector scheme. Or you can mess with colored light filters or IR plastics that pass IR energy like the dark lenses in front of IR remote control devices.