Fix bug with removing non-existent folder