Fixing bin scripts