change absolute_path to expand_path ,compatible with ruby 1.8.7