Execute bundle install only if Gemfile file is present.
Check for /app/assets directory before trying build assets