Assertions go at the top.
Return nil if we can't create a file system path.