Add support for smallfiles flag