handle mkdir failure with @ and short circuit logic

fix #15