Fixed issue with bash and direxpand