Only mount hostname files if config exists

Fixes #1885 

ping @vieux @creack