Updated atocb to accept directories as arguments