Fix indentation error and user intervention for directory creation