Accept FS#9579 by Bartosz Fabianowski, fixing make zip when your build dir is not inside the source tree

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19223 a1c6a512-1295-4272-9138-f99709370657
diff --git a/docs/CREDITS b/docs/CREDITS
index 128bdf6..74d4289 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -432,6 +432,8 @@
 Le Jin
 Alex Bennee
 Stéphane Quertinmont
+Bartosz Fabianowski
+
 
 The libmad team
 The wavpack team
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index 4a27325..bb229df 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -13,7 +13,6 @@
 
 my $ROOT="..";
 my $verbose;
-my $firmdir="$ROOT/firmware";
 my $rbdir=".rockbox";
 my $wpslist;
 my $target;
@@ -26,6 +25,7 @@
 
 ($wpslist, $target) = @ARGV;
 
+my $firmdir="$ROOT/firmware";
 my $cppdef = $target;
 my @depthlist = ( 16, 8, 4, 2, 1 );