Fixing checking for exiting bundler