fix issue with detecting shell to apply options