Refactor spec helpers to extract methods for later use

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Set BUNDLE_GEMFILE and GEM_HOME correcly in director drain script

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>