Specify bash, as various flags are undefined behavior under POSIX sh, and quit out if cd fails.
Specify bash, as various flags are undefined behavior under POSIX sh, and quit out if cd fails.

pid1/test-sec-flags,pid1/test-sec-flags