[from now] 2013/05/24 09:57:59

diff --git a/bin/compile b/bin/compile
index 4ad5b39..6a00224 100755
--- a/bin/compile
+++ b/bin/compile
@@ -1,17 +1,20 @@
 #!/bin/sh

+SED="sed -u"
+GEM="/usr/local/bin/gem"
+
+export LANG=en_US.UTF-8
+export LC_ALL=en_US.UTF-8
+export GEM_HOME=$1/.gems
+
 indent() {
-  sed -u 's/^/       /'
+  $SED 's/^/       /'
 }

 message() {
   echo "-----> $*"
 }

-export LANG=en_US.UTF-8
-export LC_ALL=en_US.UTF-8
-export GEM_HOME=$1/.gems
-
 # Install gems to BUILD_DIR/.gems
 cat << EOF > ~/.gemrc
 gemhome: $GEM_HOME
@@ -20,7 +23,7 @@ gempath:
 EOF

 message "Installing bundler"
-/usr/local/bin/gem install bundler --no-rdoc --no-ri | indent
+$GEM install bundler --no-rdoc --no-ri | indent

 message "Installing gems"
 $GEM_HOME/bin/bundle install | indent