Methods to create directories and files if needed