Fix post_install logging; protect previous current dir during clean up
Merge pull request #700 from gerbercj/feature/sh_package_bugfixes

Feature/sh package bugfixes
DEV README
[travis] Test ruby head and use bundler
Fixes an issue where gem-version-bins is enabled but there are no binaries
Added tests. Rebuild of example-1.0.0.gem required though
Updated the example gem with as little changes as possible

checksums.yaml.gz has been stripped as in the current gem.

Changes:

```diff
diff --git a/spec/fixtures/gem/example/example-1.0.gem b/spec/fixtures/gem/example/example-1.0.gem
index 0241779..9238a4a 100644
--- a/spec/fixtures/gem/example/example-1.0.gem
+++ b/spec/fixtures/gem/example/example-1.0.gem
@@ -46,10 +46,12 @@ dependencies:
         version: '0'
 description: sample description
 email: sample email
-executables: []
+executables:
+- example
 extensions: []
 extra_rdoc_files: []
-files: []
+files:
+- bin/example
 homepage: http://sample-url/
 licenses: []
 post_install_message:
@@ -78,3 +80,5 @@ test_files: []
 has_rdoc:
 ============== checksums =============
 =============== files ================
+bin/example
+#!/usr/bin/env ruby

```

See http://vstone.eu/diffing-gems-in-git/
Fix file permissions on deb control files
Feeling brave, enable lintian for travis
Ignore lsb init scripts warning since we are not providing a proper init script for testing
Fixes python tests where python 3.x is installed
Since #480, no default path is set so we should define one for testing python
Merged pull request: #688: Fixes an issue where gem-version-bins is enabled but there are no binaries

See https://github.com/jordansissel/fpm#688 for more information

* pr/688:
  Updated the example gem with as little changes as possible
  Added tests. Rebuild of example-1.0.0.gem required though
  Fixes an issue where gem-version-bins is enabled but there are no binaries
Merged pull request: #694: Fixes 2 python issues within the tests

See jordansissel/fpm#694 for more information

* pr/694:
  Since #480, no default path is set so we should define one for testing python
  Fixes python tests where python 3.x is installed
Merged pull request: #696: Bugfix/debian control file permissions

See jordansissel/fpm#696 for more information

* pr/696:
  Ignore lsb init scripts warning since we are not providing a proper init script for testing
  Feeling brave, enable lintian for travis
  Fix file permissions on deb control files

Conflicts:
	.travis.yml